package com.hdoit.ares.logical.insu.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.hdoit.ares.logical.insu.model.Insurance;
import com.hdoit.ares.logical.viewmodel.insu.InsuranceSearch;
import com.tennetcn.common.dao.base.IMapper;
import com.tennetcn.common.message.PagerModel;

/**
 * @author      lvsi
 * @email       
 * @createtime  2017年12月09日 19:09:49
 * @comment
 */
@Repository(value="insuranceMapper")
public interface InsuranceMapper extends IMapper<Insurance>{

	public int queryInsuranceCount(@Param("search")InsuranceSearch insuranceSearch);
	
	public List<Insurance> queryInsuranceList(@Param("search")InsuranceSearch insuranceSearch,@Param("pager")PagerModel pagerModel);

	//下架所有选择的产品
	public int updateUndercarriage(@Param("search")InsuranceSearch insuranceSearch);
	//上架最近修改的产品
	public int updateShelf(@Param("search")InsuranceSearch insuranceSearch);
}